# Maintainer: Peter Budai <peterbudai@hotmail.com>

_realname=Test-Requiresinternet
pkgname=perl-${_realname}
pkgver=0.05
pkgrel=1
pkgdesc="Easily test network connectivity"
arch=('any')
url="https://metacpan.org/release/Test-RequiresInternet"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("http://search.mcpan.org/CPAN/authors/id/M/MA/MALLEN/Test-RequiresInternet-${pkgver}.tar.gz")
sha256sums=('bba7b32a1cc0d58ce2ec20b200a7347c69631641e8cae8ff4567ad24ef1e833e')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
